package top.kaoshanji.q1ch06b.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import top.kaoshanji.q1ch06b.aspects.LoggingAspect;

/**
 * @author kaoshanji
 * ^_^
 * create time 2025/4/29 10:07
 */
@Configuration
@ComponentScan(basePackages = "top.kaoshanji.q1ch06b.services")
@EnableAspectJAutoProxy
public class ProjectConfig {

    @Bean
    public LoggingAspect aspect() {
        return new LoggingAspect();
    }

}
